home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 638 < prev    next >
Internet Message Format  |  1996-08-06  |  784b

  1. Path: hubcap.clemson.edu!hubcap!mjs
  2. From: mjs@hubcap.clemson.edu (M. J. Saltzman)
  3. Newsgroups: comp.std.c
  4. Subject: Re: Restrictions on qsort compare function?
  5. Date: 21 Mar 96 16:12:07 GMT
  6. Organization: Clemson University
  7. Message-ID: <mjs.827424727@hubcap>
  8. References: <4iokop$h4p@lyra.csx.cam.ac.uk> <mjs.827419998@hubcap>
  9. NNTP-Posting-Host: hubcap.clemson.edu
  10. X-Newsreader: NN version 6.5.0 #1
  11.  
  12. I wrote:
  13.  
  14. >             It would surprise me not at all if qsort() relied on
  15.                                                          ^^^^^^^^^
  16. >sort_func() having the property that
  17.  
  18. >    !!sort_func(p1, p2) == -1 * !!sort_func(p2, p1)
  19.  
  20. Of course, in comp.std.c, I should have said "...were permitted to rely on..."
  21. -- 
  22.         Matthew Saltzman
  23.         Clemson University Math Sciences
  24.         mjs@clemson.edu
  25.